package cn.lopr.im.android.mvp.contact;

import java.util.Map;

import cn.lopr.im.android.bean.ArticleVo;
import cn.lopr.im.android.bean.CallbackResult;
import cn.lopr.im.android.bean.PageInfo;
import cn.lopr.im.android.bean.User;
import cn.lopr.im.android.common.OnCallBackListener;
import cn.lopr.im.android.common.ViewBase;

public interface IPersonalHomepageContact {
    interface IPersonalHomepageView extends ViewBase {
        void getUserInfoSuccess(User user);

        void getArticleSuccess(PageInfo<ArticleVo> articleVos);

        void getLikeMeLikeYouVisitPublish(Map<String, Integer> res);

        void updateArticleSuccess(String msg);
    }


    interface IPersonalHomepagePresenter {
        void getUserInfoById(String token, int userId);

        void getArticle(String token, Integer userId, int page, int size);

        void getLikeMeLikeYouVisitPublish(Integer userId);

        void updateArticleLikeNum(String token, String articleId, int num);
    }


    interface IPersonalHomepageModel {
        void getUserInfo(String token, OnCallBackListener<CallbackResult<User>, String> listener);

        void getUserInfoById(String token, int userId, OnCallBackListener<CallbackResult<User>, String> listener);
    }
}
